package edu.ynu.se.xiecheng.achitectureclass.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "api")
public class ApiConfig {
    private FboxConfig fbox;
    private YingshiConfig yingshi;
    
    @Data
    public static class FboxConfig {
        private String sensorUrl;
        private String tokenUrl;
        private String clientId;
        private String clientSecret;
    }
    
    @Data
    public static class YingshiConfig {
        private String tokenUrl;
        private String captureUrl;
        private String accountId;
    }
} 